<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>글쓰기 팝업</title>
</head>

<body>
	<p>댓글 등록</p>
	
	<table align="center">
		<tr>
			<td>
				<TEXTAREA id=comment name="comment" cols=65 rows=15></TEXTAREA>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="저장" onClick='saveComment()'>
				<input type="submit" value="취소" onClick='self.close()'>
			</td>
		</tr>
	</table>
</body>
</html>

<script type="text/javascript">

function saveComment() {
	var tmp = document.getElementById("comment");
	alert("저장되었습니다.");
	opener.parent.location.replace("logincomment/save?comment="+tmp.value);
	self.close();
}

</script>